﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations;
using SharpArch.Domain.DomainModel;

namespace CEIT.Domain
{
    public class Usuario : Entity
    {
        [Display(Name = "Login"), Required(ErrorMessage = "Informe o login", AllowEmptyStrings = true)]
        public virtual string NmLogin { get; set; }
        [Display(Name = "Senha")]
        public virtual string NmSenha { get; set; }
        public virtual bool IsRoot { get; set; }
        public virtual IList<LogAcesso> LogAcessos { get; set; }

        
        public Usuario()
        {
            this.IsRoot = false;
        }

    }
}